<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>菜单角色管理</title>
<link href="<c:url value='/insdep/reset.min.css' />" rel="stylesheet" type="text/css">
<link href="<c:url value='/insdep/easyui_full.css'/>" rel="stylesheet" type="text/css">
<link href="<c:url value='/insdep/icon.css'/>" rel="stylesheet" type="text/css">
<script type="text/javascript" src="<c:url value='/insdep/jquery-1.11.3.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/insdep/jquery.easyui-1.5.2.min.js'/>"></script>
<script type="text/javascript" src="<c:url value='/insdep/insdep-extend.min.js'/>"></script>

<link href="<c:url value='/css/wsf-button.css'/>" rel="stylesheet" type="text/css">
</head>
<body> 
	<script type="text/javascript">
	/* $('#perdg').datagrid('load', {    
	    roleid: '10010'
	}); */ 
	$(function(){
		$("#perdg").datagrid({
			queryParams:{roleid:$("#menurole_desc_win").window("options").roleid}
			
		});
		$("#empdg").datagrid({
			queryParams:{roleid:$("#menurole_desc_win").window("options").roleid}
			
		});
	})
		
	</script>
	<div style="width:500px;align-content: true;">
		<div id="menu_role_desc" class="easyui-accordion" style="width:500px;height:563px;">   
		     
		    <div title="拥有的权限" data-options="selected:true" >   
		         <table id="perdg" class="easyui-datagrid" 
						data-options="
						fitColumns:true,
						url:'get_MenuRolePerDesc',
						rownumbers: true,
						nowrap:false, 
						fit:true,
						autoRowHeight:true,
						autoRowWidth:300">
						<thead>
							<tr>
								<th style="width:52.3%" data-options="field:'id', align:'center'">权限编号</th>
								<th style="width:52%" data-options="field:'text', align:'center'">权限名称</th>
							</tr>
						</thead>
				</table>   
		    </div>   
		    <div title="分配的用户">   
		        <table id="empdg" class="easyui-datagrid" 
						data-options="
						height:450,
						fitColumns:true,
						url:'get_MenuRoleEmpDesc',
						rownumbers: true,
						nowrap:false, 
						fit:true,
						autoRowHeight:true,
						autoRowWidth:300">
						<thead>
							<tr>
								<th style="width:52.3%" data-options="field:'id', align:'center'">用户编号</th>
								<th style="width:52%" data-options="field:'text', align:'center'">用户名称</th>
							</tr>
						</thead>
				</table>
		    </div>   
	    </div>	
	</div> 
</body>
</html>